import moment from 'moment';

export const TabsConfig = [
  {
    id: '#1',
    name: '歌曲列表',
    component: 'SongList',
  },
  {
    id: '#2',
    name: '评论',
    component: 'Comment',
  },
];

export const SongListTableConfig = [
  {
    title: '',
    dataIndex: 'img',
  },
  {
    title: '音乐标题',
    dataIndex: 'name',
  },
  {
    title: '歌手',
    dataIndex: 'gs',
    render: (text, record) => {
      return record.ar[0].name;
    },
  },
  {
    title: '专辑',
    dataIndex: 'zj',
    render: (text, record) => {
      return record.al.name;
    },
  },
  {
    title: '时长',
    dataIndex: 'time',
    render: (text, record) => {
      return moment(record.dt).format('mm:ss');
    },
  },
];
